package cn.rengy.web.framework.shiro.token;

import org.apache.shiro.authc.HostAuthenticationToken;

import lombok.Data;
@Data

public class UsernameSecurityCodeToken implements HostAuthenticationToken {
	
	private static final long serialVersionUID = -613703425500431153L;

	
	private String username;

    private String code;
    
    private String host;
	@Override
	public String getPrincipal() {
		return username;
	}

	@Override
	public String getCredentials() {
		return code;
	}

	@Override
	public String getHost() {
		return host;
	}

	public UsernameSecurityCodeToken(String username, String code) {
		super();
		this.username = username;
		this.code = code;
	}
    
	
    
}
